﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class MatchSchedule
    {   
        private IDataRepository _dataObject;
        public MatchSchedule(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void CreateMatchSchedule()
        {
            _dataObject.CreateMatchSchedule(this);
        }
        public List<GetAllMatchesResult> GetAllMatches()
        {
            return _dataObject.GetAllMatches();
        }
        public void DeleteMatche()
        {
            _dataObject.DeleteMatche(this);
        }
        public void GetMatchesById()
        {
            _dataObject.GetMatchesById(this);
        }
        public void UpdateMatchSchedule()
        {
            _dataObject.UpdateMatchSchedule(this);
        }
        public List<MatchSchedule> CheckMatchExist(int matchId, int team1, int team2, DateTime date)
        {
            return _dataObject.CheckMatchExist(matchId, team1, team2, date);
        }
        public List<GetTodayMatcheResult> GetTodayMatches(int matchType)
        {
            return _dataObject.GetTodayMatches(matchType);
        }
        public List<GetMatchDetailsResult> GetMatchDetails(int matchId)
        {
            return _dataObject.GetMatchDetails(matchId);
        }
        public List<GetTodayMatcheForClientResult> GetTodayMatchesForClient()
        {
            return _dataObject.GetTodayMatchesForClient();
        }
        public List<GetTeamsByMatchResult> GetTeamsByMatch(int MatchId)
        {
            return _dataObject.GetTeamsByMatch(MatchId);
        }
        public List<GetMatchTypeByMatchIdResult> GetMatchTypeByMatchId(int MatchId)
        {
            return _dataObject.GetMatchTypeByMatchId(MatchId);
        }
        public List<GetUpComingMatchesResult> GetUpComingMatches()
        {
            return _dataObject.GetUpComingMatches();
        }
        public List<GetMatchesForMatchResultResult> GetMatchesForMatchResult()
        {
            return _dataObject.GetMatchesForMatchResult();
        }
        public List<GetMatchesForReportResult> GetMatchesForReport()
        {
            return _dataObject.GetMatchesForReport();
        }
        public List<GetTeamNameByMatchDetailResult> GetTeamNameByMatchDetail(int MatchId)
        {
            return _dataObject.GetTeamNameByMatchDetail(MatchId);
        }
        public List<GetAllMatchesForDeleteResult> GetAllMatchesForDelete()
        {
            return _dataObject.GetAllMatchesForDelete();
        }
        public void DeleteData(int MatchId)
        {
            _dataObject.DeleteData(MatchId);
        }
    }
}
